/**
 * Copyright(c) 2010 Ceno Techonologies Co., Ltd.
 *
 * History:
 *   14-6-30 下午5:54 Created by yfyang
 */
package com.jade.store.wechat.biz.protocol.menu;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.io.Serializable;
import java.util.List;

/**
 * TODO: Must write comments.
 *
 * @author <a href="mailto:ya.jin@weixin.com">ya.jin</a>
 * @version 1.0 14-6-30 ����5:54
 */
public class MenuButtons implements Serializable
{
    private Button[] button;

    public Button[] getButton()
    {
        return button;
    }

    public void setButton(Button[] button)
    {
        this.button = button;
    }

    public static class Button
    {
        public static final String TYPE_CLICK = "click";
        public static final String TYPE_VIEW = "view";
        private String type;
        private String name;
        private String key;
        private String url;
        @JsonProperty ("sub_button")
        private List<Button> subButtons;

        public String getType()
        {
            return type;
        }

        public void setType(String type)
        {
            this.type = type;
        }

        public String getName()
        {
            return name;
        }

        public void setName(String name)
        {
            this.name = name;
        }

        public String getKey()
        {
            return key;
        }

        public void setKey(String key)
        {
            this.key = key;
        }

        public String getUrl()
        {
            return url;
        }

        public void setUrl(String url)
        {
            this.url = url;
        }

        public List<Button> getSubButtons()
        {
            return subButtons;
        }

        public void setSubButtons(List<Button> subButtons)
        {
            this.subButtons = subButtons;
        }
    }
}
